class TagModel {
  List<Tag> tags;

  TagModel({this.tags});

  TagModel.fromJson(Map<String, dynamic> json) {
    if (json['data'] != null) {
      tags = new List<Tag>();
      json['data'].forEach((v) {
        tags.add(new Tag.fromJson(v));
      });
    }
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    if (this.tags != null) {
      data['data'] = this.tags.map((v) => v.toJson()).toList();
    }
    return data;
  }
}

class Tag {
  String sId;
  String label;
  String userId;
  int iV;

  Tag({this.sId, this.label, this.userId, this.iV});

  Tag.fromJson(Map<String, dynamic> json) {
    sId = json['_id'];
    label = json['label'];
    userId = json['user_id'];
    iV = json['__v'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['_id'] = this.sId;
    data['label'] = this.label;
    data['user_id'] = this.userId;
    data['__v'] = this.iV;
    return data;
  }
}
